package com.desk.api.service;

import cn.hutool.json.JSON;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.desk.api.emtity.TempHum;
import com.desk.api.mapper.TempHumMapper;
import org.springframework.stereotype.Service;

@Service
public class TempHumServiceImpl extends ServiceImpl<TempHumMapper, TempHum>
    implements TempHumService {
  @Override
  public void reportData(String msg) {
    TempHum hum = JSONUtil.toBean(msg, TempHum.class);
    save(hum);
  }
}
